//
//  InComingPackets.cc
//  
//
//  Created by Henklajd on 5/10/13.
//
//

#include "InComingPackets.h"
namespace ns3 {
    InComingPackets::InComingPackets(uint32_t p_id, std::map<uint32_t,Ptr<Packet> > p):packet_id(p_id),packetMap(p)
    {
    }
    
  /*  void InComingPackets::insertPacket(Ptr<Packet> pckt)
    {
        packetList.push_back(pckt);
        pack_Tot_Num++;
    }
    
    
    uint32_t InComingPackets::outGoingSize(){
        uint32_t size=0;
        for (uint32_t i=0; i<packetList.size(); i++) {
            size+=packetList[i]->GetSize();
        }
        return size;
        
    }
    
    Ptr<Packet> InComingPackets::removeAndReturnLastElement()
    {
        Ptr<Packet> ret;
        if(packetList.size()!=0)
        {
            ret=packetList.back();
            packetList.pop_back();
            pack_Tot_Num--;
            return ret;
        }
        else
            return 0;
    }
    */
}
